import nodeResolve from "@rollup/plugin-node-resolve";
import commonjs from '@rollup/plugin-commonjs'

// esm
export default {
  input: "./index.js",
  output: {
    file: "dist/bundle.js",
    format: "esm"
  },
  plugins:[nodeResolve(), commonjs()],
  // 使用external告诉rollup什么模块不打包到bundle内
  external:["vue"]
}